﻿#pragma once
class Vector2
{
public:
	Vector2()
	{
	}
	~Vector2()
	{
	}
	Vector2(int a, int b);
	Vector2(float a, float b);

	Vector2 operator+(Vector2 a);
	Vector2 operator-(Vector2 a);
	Vector2 operator*(Vector2 a);
	Vector2 operator/(Vector2 a);
	Vector2 operator+=(Vector2 a);
	Vector2 operator-=(Vector2 a);

	Vector2 operator-=(int x);
	Vector2 operator+=(int x);
	Vector2 operator+(int x);
	Vector2 operator-(int x);
	Vector2 operator/(float a);

	float length();

	float x = 0;
	float y = 0;
};
